package cn.com.dcsgo.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * 订单表
 *
 * @author Dcsgo
 * @since 13/5/2025 上午 10:54
 */
@TableName(value = "order")
@Data
public class Order implements Serializable {
    /**
     * 订单id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 客户id
     */
    private Long custId;

    /**
     * 产品id
     */
    private Long itemId;

    /**
     * 产品数量
     */
    private Integer quantity;

    /**
     * 订单产生时间
     */
    private Date orderDate;

    /**
     * 订单状态
     */
    private String state;

    /**
     * 支付方式
     */
    private String paymentMethod;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}